﻿@model List<PhoneBilling.UIUnkown>
@{
    ViewBag.Title = "不明话单管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    function modify(date,caller,id) {
        var url = '@Url.Content("~/System/UnkownEdit?endTime=")' + date + "&caller=" + caller + "&id=" + id;
        var targetDiv = "#unkownEdit"
        $.get(url, null, function (result) {
            $(targetDiv).html(result);
        });
    }
    function delete1(date, caller, id) {
        var url = '@Url.Content("~/System/UnkownDelete?endTime=")' + date + "&caller=" + caller + "&id=" + id;
        var targetDiv = "#unkownEdit"
        $.get(url, null, function (result) {
            $(targetDiv).html(result);
            if(result.substr(6,4) == "操作成功");
            {
                $("#" + id).hide();
            }
        });
    }
</script>
<div id="unkownEdit"></div>
<div id="unkownList">
<p id="btn-create" class="box"><a href="/System/UnkownPatchDelete"><span>批量删除</span></a></p>
<table>
    <tr>
        <th>挂机时间</th>
        <th>主叫分机</th>
        <th>拨出号码</th>
        <th>拨叫地区</th>
        <th>话类</th>
        <th>通话时长</th>
        <th>标志</th>
        <th>交换机号</th>
        <th></th>
        <th></th>
    </tr>
    @{
        foreach (var detail in Model)
        {
        <tr id="@detail.ID">
            <td>@detail.挂机时间</td>
            <td>@detail.主叫分机</td>
            <td>@detail.拨出号码</td>
            <td>@detail.拨叫地区</td>
            <td>@detail.话类</td>
            <td>@detail.通话时长</td>
            <td>@detail.标志</td>
            <td>@detail.交换机号</td>
            <td><input type="button" value="修改" class="input-submit-02" onclick="modify('@detail.挂机时间','@detail.主叫分机','@detail.ID')" /></td>
            <td><input type="button" value="删除" class="input-submit-02" onclick="delete1('@detail.挂机时间','@detail.主叫分机','@detail.ID')" /></td>
        </tr>
        }
    }
</table>
</div>


